package com.ld.hpfs.service;

import java.io.PrintWriter;
import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
 * 快数据导入并执行存储过程Service接口
 * @author caohong
 *
 */
public interface DataTranService {
	/**
	 * 插入一条数据到TAX_D_IMPORT_TRANS表
	 * @param param
	 */
	public int insertImportTrans(HashMap<String,Object> param);
	
	/**
	 * 执行存储过程sp_tax_transaction
	 * @param param
	 * @return
	 */
	public int runProcedureTransaction(HashMap<String,Object> param);
	/**
	 * 执行存储过程sp_tax_rules_main
	 * @return
	 */
	public int runProcedureRulesMain();
	
	/**
	 * 插入数据并执行存储过程
	 * @param session
	 * @param request
	 * @param response
	 * @param writer
	 * @throws Exception 
	 */
	public void doProcess(
			HttpSession session,
    		HttpServletRequest request,
    		HttpServletResponse response,
    		PrintWriter writer);

}
